namespace GroupSix.Application.Configuration;

/// <summary>
/// 文件上传配置选项
/// </summary>
public class FileUploadOptions
{
    /// <summary>
    /// 文件上传路径
    /// </summary>
    public string Path { get; set; } = "wwwroot/uploads";

    /// <summary>
    /// 最大文件大小（字节）
    /// </summary>
    public long MaxFileSize { get; set; } = 10 * 1024 * 1024; // 10MB

    /// <summary>
    /// 允许的文件扩展名
    /// </summary>
    public string[] AllowedExtensions { get; set; } = { ".jpg", ".jpeg", ".png", ".gif", ".pdf", ".doc", ".docx", ".txt" };

    /// <summary>
    /// 是否启用文件哈希验证
    /// </summary>
    public bool EnableHashValidation { get; set; } = true;

    /// <summary>
    /// 是否启用文件类型验证
    /// </summary>
    public bool EnableTypeValidation { get; set; } = true;

    /// <summary>
    /// 是否启用文件大小验证
    /// </summary>
    public bool EnableSizeValidation { get; set; } = true;
} 